package com.design.movieticket.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder(toBuilder = true)
public class MovieArrangeDto implements Serializable {
    @JsonSerialize(using = ToStringSerializer.class)
    Long id;//排片id

    String movieName;//影片名

    String movieHallName;//影厅名

    @JsonFormat(pattern = "HH:mm")
    LocalDateTime startTime;//影片开始时间

    @JsonFormat(pattern = "HH:mm")
    LocalDateTime endTime;//影片结束时间

    BigDecimal price;//影片票价
}
